<?php /* @var $this Controller */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta charset="utf-8" />
    <title><?php echo Yii::t("view_partials_header", "Bo Xanh Foods"); ?></title>
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <link href="<?php echo Yii::app()->request->baseUrl; ?>/contents/Images/favicon.ico" rel="shortcut icon" type="image/x-icon" />
    <link href="<?php echo Yii::app()->request->baseUrl; ?>/contents/bootstrap-3.1.1/css/bootstrap.css" rel="stylesheet" />
    <link href="<?php echo Yii::app()->request->baseUrl; ?>/contents/font-awesome-4.0.3/css/font-awesome.css" rel="stylesheet" />
    <link href="<?php echo Yii::app()->request->baseUrl; ?>/contents/Styles/boxanh.css" rel="stylesheet" />

    <script src="<?php echo Yii::app()->request->baseUrl; ?>/contents/ParallaxContentSlider/js/modernizr.custom.28468.js"></script>
    <script src="<?php echo Yii::app()->request->baseUrl; ?>/contents/Scripts/jquery-1.7.1.min.js"></script>
    <script src="<?php echo Yii::app()->request->baseUrl; ?>/contents/bootstrap-3.1.1/js/bootstrap.js"></script>

    <script src="<?php echo Yii::app()->request->baseUrl; ?>/contents/Sticky/sticky.full.js"></script>
    <link href="<?php echo Yii::app()->request->baseUrl; ?>/contents/Sticky/sticky.full.css" rel="stylesheet" />

    <style type="text/css">
        .product-detail{margin: 0;width: 810px;}
    </style>
</head>
    <body>
        <div id="body" style="width: 810px;overflow: hidden;">
            <?php echo $content; ?>
        </div>
    </body>

    <script>
        $('.jsc-add-to-cart').on('click', function () {
            var href = $(this).attr('href');
            $.post(
                href,
                {},
                function (data) {
                    if (data != '' && !isNaN(data)) {
                        $('#cart-qty').html(data);
                        $.sticky('<?php echo Yii::t("view_site_home", "Add to cart successfully !"); ?>');
                    } else {
                        $.sticky('<?php echo Yii::t("view_site_home", "Add to cart fail !"); ?>');
                    }
                }
            );
            return false;
        })
    </script>
</html>
